package cn.itcast.szse;

import java.util.Random;

public class Test {
    private static int[] volumn = new int[]{50, 80, 110, 140, 170, 200, 230, 260, 290, 320, 350, 380, 400, 500, 600, 700, 800, 900, 1000, 1100, 1200, 1300};
    public static void main(String[] args) throws InterruptedException {
        final Random random = new Random();
        while (true){

            System.out.println(volumn.length);
        System.out.println(random.nextInt(volumn.length));
            Thread.sleep(1000);
        }
    }
}
